package com.hsteach.web.controller.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "SemMonth", description = "月份")
@Data
public class SemMonth implements Serializable {

    @ApiModelProperty(value = "月份开始日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginDay;

    @ApiModelProperty(value = "月份结束日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDay;

    @ApiModelProperty(value = "第几月，从1开始", required = true)
    private Integer monthIndex;

    @ApiModelProperty(value = "开始号数", required = true)
    private Integer beginDayOfMonth;

    @ApiModelProperty(value = "结束号数", required = true)
    private Integer endDayOfMonth;

    @ApiModelProperty(value = "是否为当前月", required = true)
    private boolean selected;
}
